Version

ApplyFixedValuesFilter(Boolean,IEnumerable<FixedDateGroup>) Method

Syntax
'Declaration
 
Public Overloads Function ApplyFixedValuesFilter( _
   ByVal includeBlanks As Boolean, _
   ByVal dateGroups As IEnumerable(Of FixedDateGroup) _
) As FixedValuesFilter
public FixedValuesFilter ApplyFixedValuesFilter( 
   bool includeBlanks,
   IEnumerable<FixedDateGroup> dateGroups
)

Parameters

includeBlanks
The value which indicates whether blank cells should be filtered in.
dateGroups
The collection of fixed date groups which should be filtered in.
Exceptions
ExceptionDescription
System.ArgumentNullExceptiondateGroups is null.
System.ArgumentNullExceptionA FixedDateGroup in the dateGroups collection is null.
System.ArgumentExceptionMultiple items in dateGroups are equal to each other.
System.InvalidOperationExceptionincludeBlanks is False and dateGroups has no items. At least one value must be allowed.
System.InvalidOperationExceptionThe WorksheetTable.IsFilterUIVisible value of the owning table is False. Filters cannot be applied when the header row or filter button is hidden.
Remarks

Note: If any text values are longer than 255 characters in length and the workbook is saved in one of the 2003 formats, the correct rows will be hidden in the saved file, but the filter may be missing from the column or reapplying the filter may hide some of the matching cells.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also